package com.example.testenum;

import java.util.Random;

/**
 * Created by admin on 2018/6/5.
 */
public class Enums {

    private static Random rand = new Random(47);
    public static <T> T random(T[] values){
        return values[rand.nextInt(values.length)];
    }
}
